function foo() {
    setTimeout(()=> {
        it.next("ok");
    }, 100);
}
function *main() {
    var text = yield foo();
    console.log(text);
}
var it = main();
it.next();

